package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.io.Output;

/**
 * The element count is a metadata container containing the value of a count in a vote or a quorum verification.
 * 
 * <pre>
 * 	<xsd:element name="count" type="countType"/>
 * </pre>
 *
 */
public final class Count extends CountType implements ParliamentaryAnalysisTypeElement {

	public static final String ELEMENT = "count";

	/**
	 * @see org.akomantoso.core.data.CountType#writeExternal(org.akomantoso.core.io.Output)
	 */
	@Override
	public <T extends Output> void writeExternal(T out) throws IOException {
		out.writeStart(ELEMENT);
		super.writeExternal(out);
		out.writeEnd();
	}
	
}